package org.bomblauncher;

import com.google.devtools.simple.runtime.components.android.ActivityStarter;
import com.google.devtools.simple.runtime.components.android.Button;
import com.google.devtools.simple.runtime.components.android.Clock;
import com.google.devtools.simple.runtime.components.android.Form;
import com.google.devtools.simple.runtime.components.android.HorizontalArrangement;
import com.google.devtools.simple.runtime.components.android.Label;
import com.google.devtools.simple.runtime.components.android.LocationSensor;
import com.google.devtools.simple.runtime.components.android.TextBox;
import com.google.devtools.simple.runtime.components.android.VerticalArrangement;
import com.google.devtools.simple.runtime.components.android.Web;

public class Spara extends Form
{
	private HorizontalArrangement HorizontalArrangement2;
	private VerticalArrangement VerticalArrangement1;
	private ActivityStarter ActSt_PhpRead;
	private Web webCtrl;
	private LocationSensor LocSens;
	private Clock Timer;
	
	void $define()
	{
		
		HorizontalArrangement2 = new HorizontalArrangement( this );
		HorizontalArrangement2.Height( 30 );
		HorizontalArrangement2.Width( -2 );
		
		btnBollinoRosso = new Button( HorizontalArrangement2 );
		btnBollinoRosso.Height( -2 );
		btnBollinoRosso.Width( 30 );
		btnBollinoRosso.BackgroundColor( 0xFF00FF00 );
		
		lblRisultatoWeb = new Label( HorizontalArrangement2 );
		lblRisultatoWeb.Text( "thisla grossa....." );
		lblRisultatoWeb.Width( -2 );
		lblRisultatoWeb.TextAlignment( 1 );
		
		btnBersaglio = new Button( HorizontalArrangement2 );
		btnBersaglio.Text( "Bersaglio" );
		btnBersaglio.Height( -2 );
		btnBersaglio.Width( 30 );
		
		VerticalArrangement1 = new VerticalArrangement( this );
		VerticalArrangement1.Height( -2 );
		VerticalArrangement1.Width( -2 );
		
		Txt_Bomb = new TextBox( VerticalArrangement1 );
		Txt_Bomb.Height( -2 );
		Txt_Bomb.Hint( "La tua bomba" );
		Txt_Bomb.Width( -2 );
		Txt_Bomb.TextAlignment( 1 );
		
		HorizontalArrangement1 = new HorizontalArrangement( VerticalArrangement1 );
		HorizontalArrangement1.Height( 40 );
		HorizontalArrangement1.Width( -2 );
		
		btnImage = new Button( HorizontalArrangement1 );
		btnImage.Text( "Immagine" );
		btnImage.Height( -2 );
		btnImage.Width( 60 );
		
		btnLaunch = new Button( HorizontalArrangement1 );
		btnLaunch.Text( "Lancia" );
		btnLaunch.Height( -2 );
		btnLaunch.Width( -2 );
		btnLaunch.TextColor( 0xFFFF0000 );
		
		btnVideo = new Button( HorizontalArrangement1 );
		btnVideo.Text( "Video" );
		btnVideo.Height( -2 );
		btnVideo.Width( 60 );
		
		ActSt_PhpRead = new ActivityStarter( this );
		ActSt_PhpRead.Action( "android.intent.action.VIEW" );
		
		webCtrl = new Web( this );
		
		LocSens = new LocationSensor( this );
		LocSens.Enabled( false );
		
		Timer = new Clock( this );
		Timer.TimerEnabled( false );
		
	}
	public void dispatchEvent( Object component, String componentName, String eventName, Object[] params )
	{
	}
}